<?php
class ActionControllerFabric{
  public static function getController($str, View $view, $actionName, $params = null){
    $name = $str . 'Controller';
    $view->set_folder($str);

    $actionController = new $name;
    $actionController->set_view($view);
    $actionController->set_params($params);
    $actionController->set_action($actionName);
    return $actionController;
  }
}

?>